package cn.kgc.client;

import cn.kgc.base.dto.LockStockDTO;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @Date: 2023年01月03日11:57
 */
@Component
@Slf4j
public class WmsFeignClientImpl implements WmsFeignClient {
    @Override
    public Result<Boolean> lockStock(List<LockStockDTO> lockStockDTOList) {
       log.error("锁定库存服务降级,lockStockDTOList:{}",lockStockDTOList);

        return Result.error(false,"http://mall-wms/wms/WareSku/lockStock", HttpStatus.INTERNAL_SERVER_ERROR.value(), "error");
    }
}
